VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmCxCEstadoCuentaFinanciamiento 
   BackColor       =   &H00F7F5F3&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Financiamiento"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8610
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   8610
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmbFto 
      BackColor       =   &H00F7F5F3&
      Caption         =   "&Cerrar"
      Height          =   330
      Left            =   90
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   2790
      Width           =   1095
   End
   Begin MSComctlLib.ListView lsvFto 
      Height          =   2490
      Left            =   45
      TabIndex        =   0
      Top             =   90
      Width           =   8475
      _ExtentX        =   14949
      _ExtentY        =   4392
      View            =   3
      LabelEdit       =   1
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      FullRowSelect   =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483640
      BackColor       =   16250355
      Appearance      =   0
      NumItems        =   8
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Object.Width           =   0
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   1
         Text            =   "Desde"
         Object.Width           =   1235
      EndProperty
      BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   2
         Text            =   "Hasta"
         Object.Width           =   1235
      EndProperty
      BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   3
         Text            =   "Tasa interes"
         Object.Width           =   2117
      EndProperty
      BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   4
         Text            =   "Cuota"
         Object.Width           =   2117
      EndProperty
      BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   5
         Text            =   "Iva"
         Object.Width           =   2117
      EndProperty
      BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   6
         Text            =   "Seguro"
         Object.Width           =   2117
      EndProperty
      BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   1
         SubItemIndex    =   7
         Text            =   "Cuota + Iva + Seguro"
         Object.Width           =   3175
      EndProperty
   End
End
Attribute VB_Name = "frmCxCEstadoCuentaFinanciamiento"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmbFto_Click()
    Unload frmCxCEstadoCuentaFinanciamiento
End Sub
Private Sub Form_Activate()
    gprocEspera False
End Sub
Private Sub Form_Load()
    Dim rstFto As New ADODB.Recordset
    Dim Itm As ListItem
    
    gprocEspera True
    gPROCEDIMIENTO_SQL gCnCXC, "cxcFinanciamiento", rstFto, frmCxCEstadoCuenta.txtEdoCta
    With rstFto
        While Not .EOF
            Set Itm = lsvFto.ListItems.Add(, , , , 0)
            Itm.SubItems(1) = CStr(.Fields(1))
            Itm.SubItems(2) = CStr(.Fields(2))
            Itm.SubItems(3) = Lee_ConPorcentaje(.Fields(3))
            Itm.SubItems(4) = Lee_NumD(.Fields(6))
            Itm.SubItems(5) = Lee_NumD(.Fields(5))
            Itm.SubItems(6) = Lee_NumD(frmCxCEstadoCuenta.lblSeguro)
            Itm.SubItems(7) = Lee_NumD(.Fields(6) + .Fields(5) + CDbl(Lee_NumSinComasD(frmCxCEstadoCuenta.lblSeguro)))
            
            .MoveNext
        Wend
    End With
    gprocCerrarRecordset rstFto
End Sub
Private Sub Form_Unload(Cancel As Integer)
    Set frmCxCEstadoCuentaFinanciamiento = Nothing
End Sub

Sub gprocCerrarRecordset(ByRef rst As ADODB.Recordset)
    If rst.State = 1 Then
        rst.Close
        Set rst = Nothing
    End If
End Sub
